<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/24
 * Time: 16:53
 */
include "teacher.php";

$teacher=new teacher;
var_dump($teacher);
$teacher->sleep();
$teacher->eat();
$teacher->name="王大锤";
$teacher->age="20";
$teacher->gender="男";
$student=new student("40");
$student->name="王小锤";
$student->age="20";
$student->gender="男";
$student->zongshu();
var_dump($student);